package cn.keniykey.mc.landterritory.command.landadmin;

import java.util.List;

import org.bukkit.command.CommandSender;
import org.bukkit.plugin.PluginDescriptionFile;

import cn.keniykey.mc.landterritory.LandTerritoryMain;
import cn.keniykey.mc.landterritory.command.AbCommandBase;
import cn.keniykey.mc.landterritory.config.LanguageManager;

public final class CommandAbout extends AbCommandBase {
	
	CommandAbout() {
		super("about", null, false);
	}
	
	@Override
	public boolean execute(CommandSender sender, List<String> parameter) {
		final PluginDescriptionFile des = LandTerritoryMain.getPlugin().getDescription();
		sender.sendMessage(LanguageManager.getLang(1203100, des.getName(), des.getVersion()));
		return true;
	}
	@Override
	public List<String> prompt(CommandSender sender, List<String> parameter) {
		return emptylist;
	}
	@Override
	public String usage() {
		return LanguageManager.getLang(1203101);
	}
}